package com.hwpt.dto.user;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

import static com.hwpt.constant.ExceptionMessageConstant.ACCOUNT_EMPTY;
import static com.hwpt.constant.ExceptionMessageConstant.PASSWORD_EMPTY;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserPwdLoginDTO {
    //账号不为空
    @NotBlank(message = ACCOUNT_EMPTY)
    private String account;
    //密码不为空
    @NotBlank(message = PASSWORD_EMPTY)
    private String password;

}
